package org.seven;

import java.io.*;
import java.net.*;

/**
 * Created by Administrator on 2016/3/14 0014.
 */
public class TestGet {
    public static void main(String[] args) throws IOException{
        DatagramSocket ds =
                new DatagramSocket(9999);
        byte[] b = new byte[64];
        DatagramPacket dp =
                new DatagramPacket(b,b.length);
        ds.receive(dp);
        System.out.println(new String(dp.getData(),0,dp.getLength()));
    }
}
